﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JoeResume.Model;
using System.Data.Entity;

namespace JoeResume.DatabaseInitialization
{
    public class ResumeDbContext : DbContext
    {
        public ResumeDbContext()
            : base("Resume")
        {
            this.Configuration.LazyLoadingEnabled = false;
        }

        public DbSet<Resume> Resumes { get; set; }
        public DbSet<PersonalInfo> PersonalInfos { get; set; }
        public DbSet<Employer> Employers { get; set; }
        public DbSet<Project> Projects { get; set; }
        public DbSet<ProjectDetail> ProjectDetails { get; set; }
        public DbSet<Skill> Skills { get; set; }
        public DbSet<Summary> Summaries { get; set; }
        public DbSet<Education> Educations { get; set; }
    }

}
